﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace klcc
{
    public partial class Global : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Auth_User();
        }

        private void Auth_User()
        {
            //If Session["UserId"] has no val redirect to Login.aspx
            if (Session["UserId"]==null || Session["UserId"].ToString().Equals(String.Empty))
            {
                Response.Redirect("~/Login.aspx");
            }
        }
    }
}
